<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      for (var a = 1; a <= 9; a++) {
        for (var b = 0; b <= 9; b++) {
          for (var c = 0; c <= 9; c++) {
            if (a * a * a + b * b * b + c * c * c == a * 100 + b * 10 + c) {
              console.log(a * 100 + b * 10 + c);
            }
          }
        }
      }
    </script>
  </body>
</html>
